package day02;

import java.util.Arrays;
import java.util.List;

public class Demo13 {

	public static void main(String[] args) {

		Integer[] arr = { 1, 2, 4, 6, 7 };
		List<Integer> list = Arrays.asList(arr);
		System.out.println(list);

		arr[2] = 10;
		System.out.println(list);

		list.set(2, 12);
		System.out.println(list);

		for (Integer in : arr) {
			System.out.println(in);
		}

		System.out.println(list);
	}

}
